package com.parleys.android.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.parleys.server.dto.ExtendedPresentationDetailsDTO;
import com.parleys.server.frontend.service.ParleysService;

@Controller
@RequestMapping("/presentations")
public class PresentationsController extends BaseController {

	@Autowired
	private ParleysService parleysService;

    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
    public ExtendedPresentationDetailsDTO getPresentation(@PathVariable("id") long presentationId) {
        return parleysService.getPresentationDetails(presentationId);
    }
    
}
